
		<include file="./Tpl/N/Common/member_header.html" />
		
	
	</head>
	<body>

		<include file="./Tpl/N/Common/member_menu.html" />
	

		<div class="container">
			<div class="row">
				<div class="col-md-2">
					<include file="./Tpl/N/Common/member_content_menu.html" />
				</div>
				<div class="col-md-10">
					<div class="page-header">
						<h1><<{$subject.subject_name}>>文章列表</h1>
					</div>

					<table class="table">
						<thead>
							<tr><th>id</th>
								<th>审核</th>
								<th>标题</th>
								<th>点击</th>

								<th>时间</th>
								<th>发布</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>


							<volist name="list" id="list">
								<tr>


									<td>{$list.article_id}</td>
									<td>




										<if condition="($list.article_verifystatus eq 1) "> 

											<span   class="glyphicon glyphicon-ok" aria-hidden="true"></span>
											<else />
											<span class="glyphicon glyphicon-time" aria-hidden="true"></span>

										</if>




									</td>
									<td>{$list.article_title}</td>

									<td>{$list.article_visits}</td>
									<td>{$list.article_addtime}</td>
									<td>


										<if condition="($list.article_ispubish eq 1) "> 

											<span name="article_ispubish" id="{$list.article_id}" class="glyphicon  glyphicon-eye-open"  aria-hidden="true"></span>        


											<else />
											<span name="article_ispubish" id="{$list.article_id}"  class="glyphicon  glyphicon-eye-close"  aria-hidden="true"></span>        
										</if>


									</td>

									<td>
										<div role="presentation" class="dropdown">
											<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
												操作<span class="caret"></span>
											</button>
											<ul class="dropdown-menu">
								
												<li class="removeSubjectArticle" aid="{$list.article_id}"><a href="#">移除</a></li>
											
											</ul>
										</div>
									</td>
								</tr>

							</volist>






						</tbody>
					</table>
					<nav class="pull-right">
						<ul class="pagination">

							{$page}
						</ul>
					</nav>
				</div>
			</div>
		</div>
		<!--footer-->



		<include file="./Tpl/N/Common/member_footer.html" />





		<script>


			//修改文章级别
			$('li.removeSubjectArticle').click(function() {

					//var article_ispubish = $(this).val();
					var aid = $(this).attr("aid");


			



					$.post("__APP__/Member/ajaxRemoveSubjectArticle/",
						{
							article_id:aid,
						subject_id:{$subject.subject_id}
						
						},
						
						function(data){


							if (data.status == true) {
								layer.alert('移除成功！');
								location.reload();
							} else if (data.status == -1) {
								layer.alert('非法操作');
							} else if (data.status == false) {

								layer.alert('操作失败');

							} else {

								reload();
							}


						}, 'json');
			
				});





		</script>  





	</body>
</html>